package com.lay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 角色信息表
 * </p>
 *
 * @author Lay
 * @since 2022-06-09
 */
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 角色编号，主键，唯一
     */
    @TableId(value = "r_id", type = IdType.AUTO)
    private Integer rId;

    /**
     * 角色名称
     */
    private String rName;

    /**
     * 权限编号，外键
     */
    private String powers;

    /**
     * 权限备注
     */
    private String rMsg;

    /**
     * 添加人编号
     */
    private Integer unId;

    /**
     * 添加日期
     */
    private LocalDateTime rAddtime;

    /**
     * 审核人编号
     */
    private Integer unShenid;


    public Integer getrId() {
        return rId;
    }

    public void setrId(Integer rId) {
        this.rId = rId;
    }

    public String getrName() {
        return rName;
    }

    public void setrName(String rName) {
        this.rName = rName;
    }

    public String getPowers() {
        return powers;
    }

    public void setPowers(String powers) {
        this.powers = powers;
    }

    public String getrMsg() {
        return rMsg;
    }

    public void setrMsg(String rMsg) {
        this.rMsg = rMsg;
    }

    public Integer getUnId() {
        return unId;
    }

    public void setUnId(Integer unId) {
        this.unId = unId;
    }

    public LocalDateTime getrAddtime() {
        return rAddtime;
    }

    public void setrAddtime(LocalDateTime rAddtime) {
        this.rAddtime = rAddtime;
    }

    public Integer getUnShenid() {
        return unShenid;
    }

    public void setUnShenid(Integer unShenid) {
        this.unShenid = unShenid;
    }

    @Override
    public String toString() {
        return "Role{" +
        "rId=" + rId +
        ", rName=" + rName +
        ", powers=" + powers +
        ", rMsg=" + rMsg +
        ", unId=" + unId +
        ", rAddtime=" + rAddtime +
        ", unShenid=" + unShenid +
        "}";
    }
}
